package com.gxuwz.ssy.mapper;

import com.gxuwz.ssy.model.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 师善滢
 * @since 2022-04-06
 */
public interface RoleMapper extends BaseMapper<Role> {
    @Select("SELECT role_id FROM t_role_user WHERE user_id = #{uid}")
    List<String> getUserRoles(Integer uid);
}
